﻿using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class admin_AdminOutPhoto : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            bindExamTimeList();
        }
    }

    private void bindExamTimeList()
    {
        DataTable dt = Exam.ExamTime_GetTopList();
        BSUtility.BindListControl(ddlExamAllName, dt, "EmAllName", "TimeID");

    }

    private void BindEmRank()
    {
        if (ddlExamAllName.SelectedValue != null)
        {
            DataTable dt = Exam.ApplyInfoRank_GetList(ddlExamAllName.SelectedValue.ToString());
            BSUtility.BindListControl(ddlEmRankName, dt, "EmRankName", "EmRankName");
        }
    }
    protected void ddlExamAllName_SelectedIndexChanged(object sender, EventArgs e)
    {
        BindEmRank();
    }
}